
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.4 单数据源多出口案例(选择器) · 大数据 Fulume 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.html" />
    
    
    <link rel="prev" href="33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    第 1 章 概述
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../11-flume-de-zuo-yong.html">
            
                <a href="../11-flume-de-zuo-yong.html">
            
                    
                    1.1 Flume 是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="../12-flume-zu-cheng-jia-gou.html">
            
                <a href="../12-flume-zu-cheng-jia-gou.html">
            
                    
                    1.2 Flume 组成架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="../13-flume-tuo-pu-jia-gou.html">
            
                <a href="../13-flume-tuo-pu-jia-gou.html">
            
                    
                    1.3 Flume 拓扑架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="../14-flume-nei-bu-yuan-li.html">
            
                <a href="../14-flume-nei-bu-yuan-li.html">
            
                    
                    1.4 Flume 内部原理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter1.html">
            
                <a href="../chapter1.html">
            
                    
                    第 2 章 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../di-3-zhang-qi-ye-kai-fa-an-li.html">
            
                <a href="../di-3-zhang-qi-ye-kai-fa-an-li.html">
            
                    
                    第 3 章 企业开发案例
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.html">
            
                <a href="31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.html">
            
                    
                    3.1 官方案例:监控端口数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.html">
            
                <a href="32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.html">
            
                    
                    3.2 实时读取本地文件到HDFS案例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.html">
            
                <a href="33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.html">
            
                    
                    3.3 实时读取目录文件到 HDFS
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.4" data-path="34-dan-shu-ju-yuan-duo-chu-kou-an-li.html">
            
                <a href="34-dan-shu-ju-yuan-duo-chu-kou-an-li.html">
            
                    
                    3.4 单数据源多出口案例(选择器)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.html">
            
                <a href="35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.html">
            
                    
                    3.5 单数据源多出口案例(Sink组)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="36-duo-shu-ju-yuan-hui-zong-an-li.html">
            
                <a href="36-duo-shu-ju-yuan-hui-zong-an-li.html">
            
                    
                    3.6 多数据源汇总案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../di-4-zhang-flume-jian-kong-zhi-ganglia.html">
            
                <a href="../di-4-zhang-flume-jian-kong-zhi-ganglia.html">
            
                    
                    第 4 章 Flume 监控之 Ganglia
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../di-4-zhang-flume-jian-kong-zhi-ganglia/41-ganglia-de-an-zhuang-he-bu-shu.html">
            
                <a href="../di-4-zhang-flume-jian-kong-zhi-ganglia/41-ganglia-de-an-zhuang-he-bu-shu.html">
            
                    
                    4.1 Ganglia 的安装和部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../di-4-zhang-flume-jian-kong-zhi-ganglia/42-cao-zuo-flume-ce-shi-jian-kong.html">
            
                <a href="../di-4-zhang-flume-jian-kong-zhi-ganglia/42-cao-zuo-flume-ce-shi-jian-kong.html">
            
                    
                    4.2 操作 Flume 测试监控
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../di-5-zhang-zi-ding-yi-source.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source.html">
            
                    
                    第 5 章 自定义 source
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../di-5-zhang-zi-ding-yi-source/51-xu-qiu.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source/51-xu-qiu.html">
            
                    
                    5.1 需求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../di-5-zhang-zi-ding-yi-source/52-fen-xi.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source/52-fen-xi.html">
            
                    
                    5.2 分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../di-5-zhang-zi-ding-yi-source/53-bian-ma.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source/53-bian-ma.html">
            
                    
                    5.3 编码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../di-5-zhang-zi-ding-yi-source/54-ce-shi.html">
            
                <a href="../di-5-zhang-zi-ding-yi-source/54-ce-shi.html">
            
                    
                    5.4 测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../di-5-zhang-qi-ye-zhen-shi-mian-shi-ti.html">
            
                <a href="../di-5-zhang-qi-ye-zhen-shi-mian-shi-ti.html">
            
                    
                    第 6 章 企业真实面试题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.4 单数据源多出口案例(选择器)</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="34-&#x5355;&#x6570;&#x636E;&#x6E90;&#x591A;&#x51FA;&#x53E3;&#x6848;&#x4F8B;&#x9009;&#x62E9;&#x5668;">3.4 &#x5355;&#x6570;&#x636E;&#x6E90;&#x591A;&#x51FA;&#x53E3;&#x6848;&#x4F8B;(&#x9009;&#x62E9;&#x5668;)</h1>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541557279.png-atguiguText" alt=""></p>
<h2 id="341-&#x6848;&#x4F8B;&#x9700;&#x6C42;">3.4.1 &#x6848;&#x4F8B;&#x9700;&#x6C42;</h2>
<p>&#x4F7F;&#x7528; Flume-1 &#x76D1;&#x63A7;&#x6587;&#x4EF6;&#x53D8;&#x52A8;&#xFF0C;Flume-1 &#x5C06;&#x53D8;&#x52A8;&#x5185;&#x5BB9;&#x4F20;&#x9012;&#x7ED9; -2&#xFF0C;Flume-2 &#x8D1F;&#x8D23;&#x5B58;&#x50A8;&#x5230;HDFS&#x3002;
&#x540C;&#x65F6; Flume-1 &#x5C06;&#x53D8;&#x52A8;&#x5185;&#x5BB9;&#x4F20;&#x9012;&#x7ED9; Flume-3&#xFF0C;Flume-3 &#x8D1F;&#x8D23;&#x8F93;&#x51FA;&#x5230;Local FileSystem&#x3002;</p>
<h2 id="342-&#x9700;&#x6C42;&#x5206;&#x6790;">3.4.2 &#x9700;&#x6C42;&#x5206;&#x6790;</h2>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541557437.png-atguiguText" alt=""></p>
<h2 id="343-&#x64CD;&#x4F5C;&#x6B65;&#x9AA4;">3.4.3 &#x64CD;&#x4F5C;&#x6B65;&#x9AA4;</h2>
<h3 id="&#x6B65;&#x9AA4;1-&#x51C6;&#x5907;&#x5DE5;&#x4F5C;">&#x6B65;&#x9AA4;1: &#x51C6;&#x5907;&#x5DE5;&#x4F5C;</h3>
<p>&#x521B;&#x5EFA;&#x4E24;&#x4E2A;&#x76EE;&#x5F55;:</p>
<ol>
<li><p>&#x5728;<code>/opt/module/flume/job</code> &#x76EE;&#x5F55;&#x4E0B;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;<code>group1</code>, &#x5C06;&#x6765;&#x5728;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x5B58;&#x653E;&#x6211;&#x4EEC; 3 &#x4E2A; agent &#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;.</p>
</li>
<li><p>&#x5728;<code>/opt/module/datas</code> &#x76EE;&#x5F55;&#x4E0B;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;<code>flume3</code>, &#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4F5C;&#x4E3A;<code>flume3</code> <code>sink</code>&#x6570;&#x636E;&#x7684;&#x76EE;&#x5F55;.</p>
</li>
</ol>
<h3 id="&#x6B65;&#x9AA4;2-&#x521B;&#x5EFA;-agent1-&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x6B65;&#x9AA4;2: &#x521B;&#x5EFA; agent1 &#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h3>
<p>&#x6587;&#x4EF6;&#x540D;: <code>flume-file-flume.conf</code></p>
<p>&#x6587;&#x4EF6;&#x5185;&#x5BB9;&#x5982;&#x4E0B;:</p>
<pre class="language-"><code># Name the components on this agent
a1.sources = r1
a1.sinks = k1 k2
a1.channels = c1 c2
# &#x5C06;&#x6570;&#x636E;&#x6D41;&#x590D;&#x5236;&#x7ED9;&#x6240;&#x6709;channel
a1.sources.r1.selector.type = replicating

# Describe/configure the source
a1.sources.r1.type = exec
a1.sources.r1.command = tail -F /opt/module/hive-2.3.3/logs/hive.log
a1.sources.r1.shell = /bin/bash -c

# Describe the sink
a1.sinks.k1.type = avro
a1.sinks.k1.hostname = hadoop201 
a1.sinks.k1.port = 4141

a1.sinks.k2.type = avro
a1.sinks.k2.hostname = hadoop201
a1.sinks.k2.port = 4142

# Describe the channel
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100

a1.channels.c2.type = memory
a1.channels.c2.capacity = 1000
a1.channels.c2.transactionCapacity = 100

# Bind the source and sink to the channel
a1.sources.r1.channels = c1 c2
a1.sinks.k1.channel = c1
a1.sinks.k2.channel = c2
</code></pre><blockquote>
<h4 id="&#x8BF4;&#x660E;"><em>&#x8BF4;&#x660E;:</em></h4>
</blockquote>
<ul>
<li>Avro &#x662F;&#x7531; Hadoop &#x521B;&#x59CB;&#x4EBA; Doug Cutting &#x521B;&#x5EFA;&#x7684;&#x4E00;&#x79CD;&#x8BED;&#x8A00;&#x65E0;&#x5173;&#x7684;&#x6570;&#x636E;&#x5E8F;&#x5217;&#x5316;&#x548C; RPC &#x6846;&#x67B6;&#x3002;</li>
<li>RPC&#xFF08;Remote Procedure Call&#xFF09;&#x8FDC;&#x7A0B;&#x8FC7;&#x7A0B;&#x8C03;&#x7528;&#xFF0C;&#x5B83;&#x662F;&#x4E00;&#x79CD;&#x901A;&#x8FC7;&#x7F51;&#x7EDC;&#x4ECE;&#x8FDC;&#x7A0B;&#x8BA1;&#x7B97;&#x673A;&#x7A0B;&#x5E8F;&#x4E0A;&#x8BF7;&#x6C42;&#x670D;&#x52A1;&#xFF0C;&#x800C;&#x4E0D;&#x9700;&#x8981;&#x4E86;&#x89E3;&#x5E95;&#x5C42;&#x7F51;&#x7EDC;&#x6280;&#x672F;&#x7684;&#x534F;&#x8BAE;&#x3002;</li>
</ul>
<h3 id="&#x6B65;&#x9AA4;3-&#x521B;&#x5EFA;-agent2-&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x6B65;&#x9AA4;3: &#x521B;&#x5EFA; agent2 &#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h3>
<p>&#x4E0A;&#x7EA7;&#x662F;<code>agent1</code>, sink &#x5230; HDFS</p>
<p>&#x6587;&#x4EF6;&#x540D;: <code>flume-flume-hdfs.conf</code></p>
<p>&#x6587;&#x4EF6;&#x5185;&#x5BB9;&#x5982;&#x4E0B;:</p>
<pre class="language-"><code># Name the components on this agent
a2.sources = r1
a2.sinks = k1
a2.channels = c1

# Describe/configure the source
a2.sources.r1.type = avro
a2.sources.r1.bind = hadoop201
a2.sources.r1.port = 4141

# Describe the sink
a2.sinks.k1.type = hdfs
a2.sinks.k1.hdfs.path = hdfs://hadoop201:9000/flume2/%Y%m%d/%H
#&#x4E0A;&#x4F20;&#x6587;&#x4EF6;&#x7684;&#x524D;&#x7F00;
a2.sinks.k1.hdfs.filePrefix = flume2-
#&#x662F;&#x5426;&#x6309;&#x7167;&#x65F6;&#x95F4;&#x6EDA;&#x52A8;&#x6587;&#x4EF6;&#x5939;
a2.sinks.k1.hdfs.round = true
#&#x591A;&#x5C11;&#x65F6;&#x95F4;&#x5355;&#x4F4D;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x6587;&#x4EF6;&#x5939;
a2.sinks.k1.hdfs.roundValue = 1
#&#x91CD;&#x65B0;&#x5B9A;&#x4E49;&#x65F6;&#x95F4;&#x5355;&#x4F4D;
a2.sinks.k1.hdfs.roundUnit = hour
#&#x662F;&#x5426;&#x4F7F;&#x7528;&#x672C;&#x5730;&#x65F6;&#x95F4;&#x6233;
a2.sinks.k1.hdfs.useLocalTimeStamp = true
#&#x79EF;&#x6512;&#x591A;&#x5C11;&#x4E2A;Event&#x624D;flush&#x5230;HDFS&#x4E00;&#x6B21;
a2.sinks.k1.hdfs.batchSize = 100
#&#x8BBE;&#x7F6E;&#x6587;&#x4EF6;&#x7C7B;&#x578B;&#xFF0C;&#x53EF;&#x652F;&#x6301;&#x538B;&#x7F29;
a2.sinks.k1.hdfs.fileType = DataStream
#&#x591A;&#x4E45;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x6587;&#x4EF6;
a2.sinks.k1.hdfs.rollInterval = 600
#&#x8BBE;&#x7F6E;&#x6BCF;&#x4E2A;&#x6587;&#x4EF6;&#x7684;&#x6EDA;&#x52A8;&#x5927;&#x5C0F;&#x5927;&#x6982;&#x662F;128M
a2.sinks.k1.hdfs.rollSize = 134217700
#&#x6587;&#x4EF6;&#x7684;&#x6EDA;&#x52A8;&#x4E0E;Event&#x6570;&#x91CF;&#x65E0;&#x5173;
a2.sinks.k1.hdfs.rollCount = 0
#&#x6700;&#x5C0F;&#x5197;&#x4F59;&#x6570;
a2.sinks.k1.hdfs.minBlockReplicas = 1

# Describe the channel
a2.channels.c1.type = memory
a2.channels.c1.capacity = 1000
a2.channels.c1.transactionCapacity = 100

# Bind the source and sink to the channel
a2.sources.r1.channels = c1
a2.sinks.k1.channel = c1
</code></pre><h3 id="&#x6B65;&#x9AA4;4-&#x521B;&#x5EFA;-agent3-&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x6B65;&#x9AA4;4: &#x521B;&#x5EFA; agent3 &#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h3>
<p>&#x4E0A;&#x7EA7;&#x662F;<code>agent1</code> sink &#x5230;&#x672C;&#x5730;&#x76EE;&#x5F55;</p>
<p>&#x6587;&#x4EF6;&#x540D;: <code>flume-flume-dir.conf</code></p>
<p>&#x6587;&#x4EF6;&#x5185;&#x5BB9;&#x5982;&#x4E0B;:</p>
<pre class="language-"><code># Name the components on this agent
a3.sources = r1
a3.sinks = k1
a3.channels = c2

# Describe/configure the source
a3.sources.r1.type = avro
a3.sources.r1.bind = hadoop201
a3.sources.r1.port = 4142

# Describe the sink
a3.sinks.k1.type = file_roll
a3.sinks.k1.sink.directory = /opt/module/datas/flume3

# Describe the channel
a3.channels.c2.type = memory
a3.channels.c2.capacity = 1000
a3.channels.c2.transactionCapacity = 100

# Bind the source and sink to the channel
a3.sources.r1.channels = c2
a3.sinks.k1.channel = c2
</code></pre><blockquote>
<h4 id="&#x6CE8;&#x610F;"><em>&#x6CE8;&#x610F;:</em></h4>
</blockquote>
<ul>
<li>&#x8F93;&#x51FA;&#x7684;&#x672C;&#x5730;&#x76EE;&#x5F55;&#x5FC5;&#x987B;&#x662F;&#x5DF2;&#x7ECF;&#x5B58;&#x5728;&#x7684;&#x76EE;&#x5F55;&#xFF0C;&#x5982;&#x679C;&#x8BE5;&#x76EE;&#x5F55;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x5E76;&#x4E0D;&#x4F1A;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x76EE;&#x5F55;&#x3002;</li>
</ul>
<h3 id="&#x6B65;&#x9AA4;5-&#x5206;&#x522B;&#x542F;&#x52A8;-3-&#x4E2A;-flume">&#x6B65;&#x9AA4;5: &#x5206;&#x522B;&#x542F;&#x52A8; 3 &#x4E2A; Flume</h3>
<pre class="language-"><code class="lang-bash">flume-ng agent -c conf -f job/group1/flume-flume-dir.conf -n a3
flume-ng agent -c conf -f job/group1/flume-flume-hdfs.conf -n a2
flume-ng agent -c conf -f job/group1/flume-file-flume.conf -n a1
</code></pre>
<h3 id="&#x6B65;&#x9AA4;5-&#x542F;&#x52A8;&#x96C6;&#x7FA4;&#x548C;-hive">&#x6B65;&#x9AA4;5: &#x542F;&#x52A8;&#x96C6;&#x7FA4;&#x548C; Hive</h3>
<h3 id="&#x6B65;&#x9AA4;6-&#x68C0;&#x6D4B;-hdfs-&#x548C;-&#x672C;&#x5730;&#x76EE;&#x5F55;&#x4E0A;&#x7684;&#x6570;&#x636E;">&#x6B65;&#x9AA4;6: &#x68C0;&#x6D4B; HDFS &#x548C; &#x672C;&#x5730;&#x76EE;&#x5F55;&#x4E0A;&#x7684;&#x6570;&#x636E;</h3>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541559518.png-atguiguText" alt=""></p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541566228.png-atguiguText" alt=""></p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-11-20 18:14:17
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.html" class="navigation navigation-prev " aria-label="Previous page: 3.3 实时读取目录文件到 HDFS">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.html" class="navigation navigation-next " aria-label="Next page: 3.5 单数据源多出口案例(Sink组)">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.4 单数据源多出口案例(选择器)","level":"1.3.4","depth":2,"next":{"title":"3.5 单数据源多出口案例(Sink组)","level":"1.3.5","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.md","articles":[]},"previous":{"title":"3.3 实时读取目录文件到 HDFS","level":"1.3.3","depth":2,"path":"di-3-zhang-qi-ye-kai-fa-an-li/33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.md","ref":"di-3-zhang-qi-ye-kai-fa-an-li/33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.md","articles":[]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://o7cqr8cfk.bkt.clouddn.com/18-3-4/62171757.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/83394736.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/15906185.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/15906185.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/3394270.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/65028582.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/20359261.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/37472401.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/3355397.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"https://www.gitbook.com/@zhenchao125"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 Fulume 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"di-3-zhang-qi-ye-kai-fa-an-li/34-dan-shu-ju-yuan-duo-chu-kou-an-li.md","mtime":"2018-11-20T10:14:17.856Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-25T01:39:38.954Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

